package com.zjyd.douyangsystem.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Date;

@Slf4j
@Component
public class TestJob {

    /**
     * 测试任务
     */
    @XxlJob("testJob")
    public void testJob() {
        log.info("测试任务"+new Date());
    }
}
